/**
 * @author Yuqi Chou
 * @version  Jul 30, 2012
 */
package com.threeti.mecool.web.util;

import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Yuqi Chou 
 * @version Jul 30, 2012  11:59:53 AM
 */
public abstract class RequestUtil {
	
	public static Map<String,String> getParameterMap(HttpServletRequest request){
		Map<String,String> paramMap=new HashMap<String, String>();
		Enumeration<String> names = request.getParameterNames();
		while(names.hasMoreElements()){
			String parameterName=names.nextElement();
			paramMap.put(parameterName, request.getParameter(parameterName));
		}
		return paramMap;
	}
}
